﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true"
    CodeFile="PaginationTest.aspx.cs" Inherits="PaginationTest" Title="Untitled Page" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="Server">
    <h1 class="pagetitle">
        分页演示<asp:UpdateProgress ID="UpdateProgress1" runat="server">
            <ProgressTemplate>
                <div style="font-weight: normal; margin: -18px 0 0 0; font-size: 12px; float: right;
                    padding-right: 0px; padding-left: 24px; background: url(images/loading.gif) #cccccc no-repeat 0px 1px;
                    padding-bottom: 0px; width: 181px; padding-top: 0px; height: 18px" id="ani">
                    正在加载数据，请耐心等待...</div>
            </ProgressTemplate>
        </asp:UpdateProgress>
    </h1>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <asp:GridView ID="GridView1" runat="server" Width="100%">
                <RowStyle Height="20px" />
                <HeaderStyle BackColor="#E0E0E0" ForeColor="Black" Height="24px" />
                <AlternatingRowStyle BackColor="#F7F7F7" />
            </asp:GridView>
            <webdiyer:AspNetPager ID="AspNetPager1" runat="server" ShowCustomInfoSection="Left"
                CustomInfoHTML="总记录数：%RecordCount%，总页数：%PageCount%，当前为第%CurrentPageIndex%页" CustomInfoTextAlign="left"
                CustomInfoStyle="padding-top:8px;font-weight:bold;" HorizontalAlign="right" FirstPageText="首页"
                LastPageText="尾页" NextPageText="下一页" OnPageChanged="AspNetPager1_PageChanged"
                OnPageChanging="AspNetPager1_PageChanging" PrevPageText="上一页" ShowPageIndexBox="Always"
                SubmitButtonText="Go" TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到" CssClass="anpager"
                CurrentPageButtonClass="cpb">
            </webdiyer:AspNetPager>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
